﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.ServiceProcess;
using System.Text;

using System;
using System.Collections;
using System.Configuration.Install;
using System.ServiceProcess;
using System.ComponentModel;


namespace Baggr.Agent
{
    [RunInstaller(true)]
    public class ServiceInstaller
        : Installer
    {
        public ServiceInstaller()
        {
            var processInstaller = new ServiceProcessInstaller()
                                       {
                                           Account = ServiceAccount.LocalSystem,
                                       };
            var si = new System.ServiceProcess.ServiceInstaller();
            si.ServiceName = "Baggr.Agent";
            Installers.Add(si);
            Installers.Add(processInstaller);
        }
    }
}
